package com.tqjc.business.interactivewithscan.consts;

/**
 * @program: C20005_Xianggang_new
 * @description: 数据传输异常枚举
 * @author: Patienyon
 * @create: 2023-10-31 10:30
 **/
public enum ScadaExceptionEnum {
    SCADA_TIMEOUT_ERROR(1005000, "Scada命令响应超时！"),
    SCADA_Command_ERROR(1005100, "Scada执行命令失败！"),
    ;
    private int code;

    private String msg;

    private String deviceName;

    ScadaExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public ScadaExceptionEnum setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ScadaExceptionEnum setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public ScadaExceptionEnum setDeviceName(String deviceName) {
        this.deviceName = deviceName;
        return this;
    }
}
